//
//  WWAreadId.m
//  WhatWeather
//
//  Created by byn on 15/11/26.
//  Copyright © 2015年 byn. All rights reserved.
//

#import "WWAreaInfo.h"
#import "FMDB.h"
@implementation WWAreaInfo

+ (WWAreaInfo *)setupAreaInfo : (FMResultSet *)resultSet {
    
    WWAreaInfo *areaInfo = [[WWAreaInfo alloc] init];
    areaInfo.areaId = [resultSet stringForColumnIndex:0];
    areaInfo.nameEN = [resultSet stringForColumnIndex:1];
    areaInfo.nameCN = [resultSet stringForColumnIndex:2];
    areaInfo.districtCN = [resultSet stringForColumnIndex:3];
    areaInfo.provCN = [resultSet stringForColumnIndex:4];
    
    return areaInfo;
}


@end
